-- GENERATED SPELL FOR [Shadowpine Catlord] --


function spell0_16345(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(28902,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16345', 10268, 1)
end

function spell1_16345(pUnit, Event) --@Summon Ghostclaw Lynx,Self--
pUnit:FullCastSpellOnTarget(28904,pUnit)
pUnit:RegisterEvent('Sorts_16345', 589, 1)
end

function Sorts_16345(pUnit, Event)
local choix_sorts_16345 = math.random(0, 1)
if choix_sorts_16345 == 0 then
pUnit:RegisterEvent('spell0_16345', 1, 1)
end
if choix_sorts_16345 == 1 then
pUnit:RegisterEvent('spell1_16345', 1, 1)
end
end

function mob16345_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16345', math.random(1500, 3000), 1)
end

function mob16345_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16345_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16345_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16345, 1, 'mob16345_Action')
RegisterUnitEvent(16345, 2, 'mob16345_Leave')
RegisterUnitEvent(16345, 3, 'mob16345_Kill')
RegisterUnitEvent(16345, 4, 'mob16345_Die')
